package com.zhuangwei.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 读取配置信息
 *
 * @author 文希
 * @create 2019-05-27 11:18
 **/
@Data
@RefreshScope // 开启刷新
@Component
public class ValueConfig {
    @Value("${rest.uuid}")
    private String uuid;
}
